package com.koomii.common.ws;

/**
 * Created with IntelliJ IDEA.
 * User:yfliuxiaofei@jd.com
 * Date: 14-3-5
 * Time: 下午5:00
 * To change this template use File | Settings | File Templates.
 */

public class ResponseBean implements java.io.Serializable {
    private static final long serialVersionUID = -1L;
    public static final int SUCCESS = 10;
    public static final int FAILURE = 20;
    public static final int LOCKED = 30;
    public static final int EXCEPTION = 40;
    private int returnCode;//返回状态编码
    private String returnMsg;//返回提示信息
    private int dataCount;//数据的总数 分页使用
    private String returnData;//返回数据  json串
    private Object returnObject;//返回对象类型

    public ResponseBean() {

    }

    public ResponseBean(int returnCode, String returnMsg) {
        this.returnCode = returnCode;
        this.returnMsg = returnMsg;
    }

    public Object getReturnObject() {
        return returnObject;
    }

    public void setReturnObject(Object returnObject) {
        this.returnObject = returnObject;
    }

    public int getDataCount() {
        return dataCount;
    }

    public void setDataCount(int dataCount) {
        this.dataCount = dataCount;
    }

    public String getReturnData() {
        return returnData;
    }

    public void setReturnData(String returnData) {
        this.returnData = returnData;
    }

    public int getReturnCode() {
        return returnCode;
    }

    public void setReturnCode(int returnCode) {
        this.returnCode = returnCode;
    }

    public String getReturnMsg() {
        return returnMsg;
    }

    public void setReturnMsg(String returnMsg) {
        this.returnMsg = returnMsg;
    }
}

